package com.ruoyi.finance.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商户信息对象 merchant
 *
 * @author zt
 * @date 2023-11-19
 */

public class Merchant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 公司全称 */
    @Excel(name = "公司全称")
    private String comName;

    /** 公司注册号 */
    @Excel(name = "公司注册号")
    private String comRegisterNum;

    /** 公司许可证号 */
    @Excel(name = "公司许可证号")
    private String licensePermit;

    /** 负责人 */
    @Excel(name = "负责人")
    private String functionary;

    /** 业务场景图片 */
    private String businessImg;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 商户编码 */
    @Excel(name = "商户编码")
    private String merchantCode;

    /** 密钥 */
    @Excel(name = "密钥")
    private String secretKey;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    public Merchant(Long userId, BigDecimal balance) {
        this.userId = userId;
        this.balance = balance;
    }

    public Merchant(Long userId) {
        this.userId = userId;
    }

    public Merchant(Long userId, String functionary, String merchantCode, String secretKey) {
        this.userId = userId;
        this.functionary = functionary;
        this.merchantCode = merchantCode;
        this.secretKey = secretKey;
    }

    public Merchant(String merchantCode, BigDecimal balance) {
        this.merchantCode = merchantCode;
        this.balance = balance;
    }

    public Merchant() {
    }

    public Merchant(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public void setUserId(Long  userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setComName(String comName)
    {
        this.comName = comName;
    }

    public String getComName()
    {
        return comName;
    }
    public void setComRegisterNum(String comRegisterNum)
    {
        this.comRegisterNum = comRegisterNum;
    }

    public String getComRegisterNum()
    {
        return comRegisterNum;
    }
    public void setLicensePermit(String licensePermit)
    {
        this.licensePermit = licensePermit;
    }

    public String getLicensePermit()
    {
        return licensePermit;
    }
    public void setFunctionary(String functionary)
    {
        this.functionary = functionary;
    }

    public String getFunctionary()
    {
        return functionary;
    }
    public void setBusinessImg(String businessImg)
    {
        this.businessImg = businessImg;
    }

    public String getBusinessImg()
    {
        return businessImg;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setMerchantCode(String merchantCode)
    {
        this.merchantCode = merchantCode;
    }

    public String getMerchantCode()
    {
        return merchantCode;
    }
    public void setSecretKey(String secretKey)
    {
        this.secretKey = secretKey;
    }

    public String getSecretKey()
    {
        return secretKey;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("comName", getComName())
            .append("comRegisterNum", getComRegisterNum())
            .append("licensePermit", getLicensePermit())
            .append("functionary", getFunctionary())
            .append("businessImg", getBusinessImg())
            .append("balance", getBalance())
            .append("merchantCode", getMerchantCode())
            .append("secretKey", getSecretKey())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
